package com.lrkj.payfee.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lrkj.payfee.mapper.RequireRecordMapper;
import com.lrkj.payfee.domain.RequireRecord;
import com.lrkj.payfee.service.IRequireRecordService;

/**
 * 催缴记录Service业务层处理
 *
 * @author yajun_ren
 * @date 2022-03-24
 */
@Service
public class RequireRecordServiceImpl implements IRequireRecordService
{
    @Autowired
    private RequireRecordMapper requireRecordMapper;

    /**
     * 查询催缴记录
     *
     * @param id 催缴记录ID
     * @return 催缴记录
     */
    @Override
    public RequireRecord selectRequireRecordById(String id)
    {
        return requireRecordMapper.selectRequireRecordById(id);
    }

    /**
     * 查询催缴记录列表
     *
     * @param requireRecord 催缴记录
     * @return 催缴记录
     */
    @Override
    public List<RequireRecord> selectRequireRecordList(RequireRecord requireRecord)
    {
        return requireRecordMapper.selectRequireRecordList(requireRecord);
    }

    /**
     * 新增催缴记录
     *
     * @param requireRecord 催缴记录
     * @return 结果
     */
    @Override
    public int insertRequireRecord(RequireRecord requireRecord)
    {
        return requireRecordMapper.insertRequireRecord(requireRecord);
    }

    /**
     * 修改催缴记录
     *
     * @param requireRecord 催缴记录
     * @return 结果
     */
    @Override
    public int updateRequireRecord(RequireRecord requireRecord)
    {
        return requireRecordMapper.updateRequireRecord(requireRecord);
    }

    /**
     * 批量删除催缴记录
     *
     * @param ids 需要删除的催缴记录ID
     * @return 结果
     */
    @Override
    public int deleteRequireRecordByIds(String[] ids)
    {
        return requireRecordMapper.deleteRequireRecordByIds(ids);
    }

    /**
     * 删除催缴记录信息
     *
     * @param id 催缴记录ID
     * @return 结果
     */
    @Override
    public int deleteRequireRecordById(String id)
    {
        return requireRecordMapper.deleteRequireRecordById(id);
    }
    /**
     * 批量新增催缴记录信息
     *
     * @param requireRecords 催缴记录对象
     */
    public int batchAddData(List<RequireRecord> requireRecords)
    {
           return requireRecordMapper.batchAddData(requireRecords);
    }
}
